package com.yellow.notificationservice.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.IdType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("delivery_notifications")
public class DeliveryNotification {

    @TableId(value = "notification_id", type = IdType.AUTO)
    private Integer notificationId;

    @TableField("order_id")
    private Integer orderId;

    @TableField("customer_id")
    private Integer customerId;

    @TableField("notification_text")
    private String notificationText;

    @TableField("notification_date")
    private LocalDateTime notificationDate;

    @TableField("read_status")
    private Integer readStatus;
}
